import http from "@/utils/request";
export const getSendRolesList = params => http.get("/api/v1/get_dedication_list", params, true);  // 获取发送者列表
export const getGenreList = params => http.get("/api/v1/get_genre_list", params, true);  // 获取曲风列表
export const getMusicLyrics = params => http.get("/api/v1/get_lyrics", params, true);  // 获取歌词
export const getMusicList = params => http.get("/api/v1/get_songList", params, true);  // 获取歌曲
export const postCreateSong = params => http.post("/api/v1/song_create", params, true);  // 创作歌曲
export const login = params => http.post("/api/v1/login/phone", params, true);
export const postGiveLike = params => http.post("/api/v1/song_like", params, true); // 点赞

// 注册
export const postRegister = params => http.post("/api/v1/register", params, true);
// 获取七牛上传信息 1:头像 2:封面图片 3:媒体文件 file_type
export const getUploadInfo = params => http.get("/api/v1/get_qiniu", params, true);
export const getUserSongList = params => http.get("/api/v1/get_user_song_list", params, true);  // 获取用户歌曲
export const getSystemLyrics = params => http.get("/api/v1/get_lyrics", params, true);  // 系统生成歌词
